import request from '@/utils/request';
import store from "@/store";

const env = import.meta.env.MODE || 'development';
const prefix = '';

// 列表 /apiapp/v1/warehouse_product_stock/list
export function warehouse_product_stockListApi (params) {
  return request({
    url: `${prefix}/apiapp/v1/warehouse_product_stock/list`,
    method: 'get',
    params
  });
}

// 详情 /apiapp/v1/warehouse_product_stock/details
export function warehouse_product_stockDetailApi (id, params) {
  return request({
    url: `${prefix}/apiapp/v1/warehouse_product_stock/details?id=${id}`,
    method: 'get',
    params
  });
}

// 编辑 /apiapp/v1/warehouse_product_stock/edit
export function warehouse_product_stockEditApi (id, data) {
  return request({
    url: `${prefix}/apiapp/v1/warehouse_product_stock/edit?id=${id}`,
    method: 'post',
    data
  });
}

// 删除 /apiapp/v1/warehouse_product_stock/delete
export function warehouse_product_stockDeleteApi (data) {
  return request({
    url: `${prefix}/apiapp/v1/warehouse_product_stock/delete`,
    method: 'post',
    data
  });
}

// 出入库订单产品明细列表 /apiapp/v1/warehouse_order_product/list
export function warehouse_order_product_listApi (data) {
  return request({
    url: `${prefix}/apiapp/v1/warehouse_order_product/list`,
    method: 'post',
    data
  });
}
